package com.koron.order.patrol.mapper;

import com.koron.order.patrol.bean.po.PatrolEquipmentItemPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡视工单-巡视点设备下检查项从表(PatrolEquipmentItem)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-26 15:26:20
 */
public interface PatrolEquipmentItemMapper {

    int insertOrUpdate(PatrolEquipmentItemPo patrolEquipmentItem);

    int insertOrUpdateBatch(@Param("list") List<PatrolEquipmentItemPo> patrolEquipmentItemList);

    int insert(PatrolEquipmentItemPo patrolEquipmentItem);

    int insertBatch(@Param("list") List<PatrolEquipmentItemPo> patrolEquipmentItemList);

    int update(PatrolEquipmentItemPo patrolEquipmentItem);

    int deleteById(String id);

    PatrolEquipmentItemPo queryById(String id);

    List<PatrolEquipmentItemPo> queryList(PatrolEquipmentItemPo patrolEquipmentItem);

    int deleteByPatrolEquipmentIds(@Param("list") List<String> patrolEquipmentIds);

}